<template>
	<u-form-item label="地点:" prop="place">
		<!-- <text>place.name</text> -->
		<view>
			<map @click="getPlace" style="width: 0px;height: 0px;"></map>
		</view>
	</u-form-item>

</template>

<script>
	export default {
		name: "map-address",
		data() {
			return {};
		},
		methods: {
			getPlace() {
				uni.chooseLocation({
					success: (res) => {
						this.$emit("setParams", res);
					}
				})
			}
		}

	}
</script>

<style lang="scss" scoped>

</style>
